package com.e3.basdoc.currency.model;

import java.util.ArrayList;
import java.util.List;

import com.e3.web.core.model.SuperQC;

public class CurrencyQC extends SuperQC {

	private static final long serialVersionUID = 3105377605370634607L;
	
	private String code;
	
	private String name;
	
	private String sign;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String toString(){
		return getName();
	}

	@Override
	public List<String> getWhereList() {
		List<String> fields = new ArrayList<String>();
		if (getCode() != null) {
			String code = getCode().trim();
			if (code.length() > 0) {
				fields.add(getStringStatement("code",code));
			}
		}

		if (getName() != null) {
			String name = getName().trim();
			if (name.length() > 0) {
				fields.add(getStringStatement("name",name));
			}
		}

		if (getSign() != null) {
			String sign = getSign().trim();
			if (sign.length() > 0) {
				fields.add(getStringStatement("sign",sign));
			}
		}
		return fields;
	}

}
